package com.zara.store.common;

import java.io.Serializable;
import java.math.BigDecimal;


public class InvoiceItemVO implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int productId;
	private BigDecimal amount;
	private BigDecimal price;
	private BigDecimal total;
	private boolean available;

	public BigDecimal getAmount() {
		return amount;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public int getProductId() {
		return productId;
	}
	public BigDecimal getTotal() {
		return total;
	}
	public InvoiceItemVO(int productId, BigDecimal amount, BigDecimal price, BigDecimal total) {
		super();
		this.productId = productId;
		this.amount = amount;
		this.price = price;
		this.total = total;
	}
	public InvoiceItemVO(int productId) {
		super();
		this.productId = productId;
		this.available = false; //not needed in practice, same default
	}
	public boolean isAvailable() {
		return available;
	}

}
